package com.hxd.mall.module.usercenter.funs

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hxd.mall.R
import com.hxd.mall.module.usercenter.bean.FunsItem
import com.hxd.mall.module.usercenter.bean.Funsbean
import com.hxd.mall.utils.open.load

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-18 13:55
 */
class FunsItemAdapter : BaseQuickAdapter<FunsItem, BaseViewHolder>(R.layout.adapter_funs_item_layout) {
    override fun convert(helper: BaseViewHolder?, item: FunsItem?) {
        helper?.getView<ImageView>(R.id.iv_head)?.load(item?.avatarUrl)
        helper?.setText(R.id.tv_phone, item?.nickname)
        helper?.setText(R.id.tv_fans, "ta帮你拉来的粉丝：${item?.fansTotal}")
    }
}